package game.leon.seawar.bai;

import java.util.List;

/**
 * User: BianP
 * Date: 11-12-30
 */
public class State {
    public static interface Def {
        int STATUS_ALLRIGHT = 1;
        int STATUS_HIGH = 2;
        int STATUS_WEAK = 3;
        int STATUS_FAINT = 4;
        int STATUS_DEAD = 5;

        int CMD_ATTACK = 1;
        int CMD_DEFEND = 2;
        
        int MAX_ROW = 2;
        int MAX_COL = 5;
    }
    //------------------------------------------------------------------------
    // 自身属性
    //------------------------------------------------------------------------
    public int id;      // 唯一标识
    public int hp;      // 血量
    public int maxhp;   // 血量上限
    
    public int mp;      // 士气
    public int status;  // 状态, 晕眩,振奋,正常

    public int cmd;     // 当前指令

    public int team;
    public int row;     // 排 1,2
    public int col;     // 列 1,2,3,4,5

    //------------------------------------------------------------------------
    // 战斗属性
    //------------------------------------------------------------------------
    public static class TS {
        State target;
        Skill skill;
        public TS(State target, Skill skill) {
            this.target = target;
            this.skill = skill;
        }
    }
    public Skill[] skills;    // 可用技能
    public Skill skill;   // 当前判断使用技能
    public State[] targets;   // 所有的战斗单位
    public State target;  // 当前判断打击目标

    public List<TS> ts;     // 打击的目标和技能对
    //------------------------------------------------------------------------
    // AI状态
    //------------------------------------------------------------------------
    public int[] cases; // AI中间状态
}
